package openGl.camera;

import android.content.Context;
import android.opengl.GLES20;

import customview.ike.com.customviewproject.R;
import camera.OpenGl.ShaderProgram;

/**
 * Created by Administrator on 2017/12/29.
 */

public class CameraShaderProgram extends ShaderProgram {
    public int vPosition;
    public int inputTextureCoordinate;
    public int vMatrix;
    public int s_texture;
    public CameraShaderProgram(Context context) {
        super(context, R.raw.camera_vertex, R.raw.camera_fragment);
        vPosition=GLES20.glGetAttribLocation(program,"vPosition");
        inputTextureCoordinate=GLES20.glGetAttribLocation(program,"inputTextureCoordinate");
        vMatrix=GLES20.glGetUniformLocation(program,"vMatrix");
        s_texture=GLES20.glGetUniformLocation(program,"s_texture");
    }
}
